import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const SYS: AppRouteRecordRaw = {
    path: '/sys',
    name: 'sys',
    component: DEFAULT_LAYOUT,
    meta: {
        locale: 'menu.sys',
        requiresAuth: true,
        icon: 'icon-settings',
        order: 1000,
    },
    children: [
        
        {
            path: 'admin',
            name: 'SysAdmin',
            component: () => import('@/views/sys/admin.vue'),
            meta: {
                locale: 'menu.sys.admin',
                requiresAuth: true,
                roles: ['*'],
                icon: 'icon-user',
            },
        },
        {
            path: 'log',
            name: 'SysLog',
            component: () => import('@/views/sys/log.vue'),
            meta: {
                locale: 'menu.sys.log',
                requiresAuth: true,
                roles: ['*'],
                icon: 'icon-code-block',
            },
        },
        {
            path: 'city',
            name: 'SysCity',
            component: () => import('@/views/sys/city.vue'),
            meta: {
                locale: 'menu.sys.city',
                requiresAuth: true,
                roles: ['*'],
                icon: 'icon-location',
            },
        },
        {
            path: 'vipSolution',
            name: 'SysVipSolution',
            component: () => import('@/views/sys/vipSolution.vue'),
            meta: {
                locale: 'menu.sys.vipSolution',
                requiresAuth: true,
                roles: ['*'],
                icon: 'icon-common',
            },
        },
    ],
};

export default SYS;
